<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/displaytag-12.tld" prefix="display" %>

<%@ page import="javax.servlet.ServletContext" %>
<%@ page import="com.ba360.portal.database.dbo.User" %>
<%@ page import="com.ba360.portal.database.dbo.User_23Feb09" %>
<%@ page import="com.ba360.portal.util.Helper" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<jsp:include page="../jsp/CheckUser.jsp"/>
<html>

<%
	String advId = request.getParameter("advId");

	String  initPict1 = null;
	String  initPict2 = null;
	String  initPict3 = null;
	String  initPict4 = null;
	String  initPict5 = null;
	String  initPict6 = null;

	String  comment1 = request.getParameter("comment1");
	String  comment2 = request.getParameter("comment2");
	String  comment3 = request.getParameter("comment3");
	String  comment4 = request.getParameter("comment4");
	String  comment5 = request.getParameter("comment5");
	String  comment6 = request.getParameter("comment6");

	Helper help = new Helper();
	// Get the path to the /Users/images from the servlet context.
	ServletContext theApplicationsServletContext =
	         (ServletContext) session.getServletContext();
	int userId;
	String memId;
	if (session.getAttribute("USER") != null) {
	
		/*
		Modified by Arun on aug 1
		
		userId = (int) ((User) session.getAttribute("USER")).getUserId();
		*/
		userId = (int) ((User_23Feb09) session.getAttribute("USER")).getUserId();
	} else {
		userId = help.getUserId(advId);
	}
	String realPath = theApplicationsServletContext
		.getRealPath("/droik/Users/images/" + userId);


	if(advId!=null && advId.length()>0) {

		memId = advId;

		comment1 = help.getComment(1, memId);
		comment2 = help.getComment(2, memId);
		comment3 = help.getComment(3, memId);
		comment4 = help.getComment(4, memId);
		comment5 = help.getComment(5, memId);
		comment6 = help.getComment(6, memId);
		out.print(comment1);
	} else {

	  	memId = String.valueOf(userId);
	}

	initPict1 = help.getOrgPath(realPath, memId, 1);
	initPict2 = help.getOrgPath(realPath, memId, 2);
	initPict3 = help.getOrgPath(realPath, memId, 3);
	initPict4 = help.getOrgPath(realPath, memId, 4);
	initPict5 = help.getOrgPath(realPath, memId, 5);
	initPict6 = help.getOrgPath(realPath, memId, 6);

	if(initPict1==null || initPict1.length()==0) {
		initPict1= "../images/no.gif";
	}
	if(initPict2==null || initPict2.length()==0) {
		initPict2= "../images/no.gif";
	}
	if(initPict3==null || initPict3.length()==0) {
		initPict3= "../images/no.gif";
	}
	if(initPict4==null || initPict4.length()==0) {
		initPict4= "../images/no.gif";
	}
	if(initPict5==null || initPict5.length()==0) {
		initPict5= "../images/no.gif";
	}
	if(initPict6==null || initPict6.length()==0) {
		initPict6= "../images/no.gif";
	}

	if(advId==null) advId = "";
	if(comment1==null) comment1 = "";
	if(comment2==null) comment2 = "";
	if(comment3==null) comment3 = "";
	if(comment4==null) comment4 = "";
	if(comment5==null) comment5 = "";
	if(comment6==null) comment6 = "";

	help.Finalize();
%>
<script language="javascript">
function doSubmit() {

	doSubmit = false;

	var action = "../portal/postadv.do?action=PostAd&advId=" + "<%=advId%>";

	if(document.getElementById('comment1')!=null)
		action = action + "&comment1=" + document.getElementById('comment1').value;
	if(document.getElementById('comment2')!=null)
		action = action + "&comment2=" + document.getElementById('comment2').value;
	if(document.getElementById('comment3')!=null)
		action = action + "&comment3=" + document.getElementById('comment3').value;
	if(document.getElementById('comment4')!=null)
		action = action + "&comment4=" + document.getElementById('comment4').value;
	if(document.getElementById('comment5')!=null)
		action = action + "&comment5=" + document.getElementById('comment5').value;
	if(document.getElementById('comment6')!=null)
		action = action + "&comment6=" + document.getElementById('comment6').value;

	if(document.getElementById('imgdel1')!=null)
 		action = action + "&imgdel1=" + document.getElementById('imgdel1').checked;
 	if(document.getElementById('imgdel2')!=null)
 		action = action + "&imgdel2=" + document.getElementById('imgdel2').checked;
 	if(document.getElementById('imgdel3')!=null)
 		action = action + "&imgdel3=" + document.getElementById('imgdel3').checked;
 	if(document.getElementById('imgdel4')!=null)
 		action = action + "&imgdel4=" + document.getElementById('imgdel4').checked;
 	if(document.getElementById('imgdel5')!=null)
 		action = action + "&imgdel5=" + document.getElementById('imgdel5').checked;
 	if(document.getElementById('imgdel6')!=null)
 		action = action + "&imgdel6=" + document.getElementById('imgdel6').checked;
	document.forms[1].action = action;
	document.forms[1].method = "post";
    	document.forms[1].submit();
}
function imgdelete(id) {

	str1 = "No Image ";
	str2 = document.getElementById('info' + id).innerHTML;

	if(!(str1 == str2)) {
		document.getElementById('info' + id).innerHTML = "Image Deleted";
		document.getElementById('imgfile' + id).disabled = true;
		document.getElementById('pict' + id).src="../images/no.gif";
	}
}
function imgchange(id) {
	document.getElementById('info' + id).innerHTML = "Browse and change image";
	document.getElementById('imgfile' + id).disabled = false;
}
function imgAdd(fileID, id) {

	//Checking whether selected files are image files.
	var imgRe = /^.+\.(jpg|jpeg|gif|png|bmp)$/i;

	var path = fileID.value;

	if (path.search(imgRe) == -1) {
		displaypopup("Selected file is not an image/picture file. Please select a jpg/jpeg/gif/png/bmp picture files to upload.");
		return;
	}

	imgSwap(id);
}
function imgSwap(id) {

	document.getElementById('pict' + id).src = "../images/yes.gif";
	document.getElementById('info' + id).innerHTML = "Image Added";
}

function updatePictureList() {

	var s= document.getElementById('picturegallery').style;
	s.display=(s.display == 'none' ? 'block' : 'none');
}

//START
//TO DISPLAY THE ERROR/WARNING/HELP MESSAGE TO THE USER.
function displaypopup(message) {

if(navigator.appName.toString() != "Microsoft Internet Explorer") {
		alert(message);
		return;
}
if (navigator.appVersion.toString().indexOf("6.0") == -1) {
		alert(message);
		return;
}

var oPopup = window.createPopup();
var popupBody = oPopup.document.body;

popupBody.bgColor="#6699cc";

popupBody.title = "PopUp window; Click outside the window to close.";

popupBody.runtimeStyle.fontFamily="Trebuchet MS";
popupBody.runtimeStyle.fontSize="12";
popupBody.runtimeStyle.color="white";
popupBody.innerHTML = "<p>" + message.toString() + "</p>";
oPopup.show(800,300, 175, (message.toString().length/50)*50);
}

var W3CDOM = (document.createElement && document.getElementsByTagName);

function initFileUploads() {
	if (!W3CDOM) return;
	var fakeFileUpload = document.createElement('div');
	fakeFileUpload.className = 'fakefile';
//	var inp=document.createElement('input');
//	inp.setAttribute("style","visiblity:hidden");
//	fakeFileUpload.appendChild(inp);
	var image = document.createElement('img');
	image.src='../images/choosepicblue.jpg';
	fakeFileUpload.appendChild(image);
	var x = document.getElementsByTagName('input');
	for (var i=0;i<x.length;i++) {
		if (x[i].type != 'file') continue;
		if (x[i].parentNode.className != 'fileinputs') continue;
		x[i].className = 'file hidden';
		var clone = fakeFileUpload.cloneNode(true);
		x[i].parentNode.appendChild(clone);
//		x[i].relatedElement = clone.getElementsByTagName('input')[0];
//		x[i].onchange = x[i].onmouseout = function () {
//			this.relatedElement.value = this.value;
//		}
	}
}

</script>


<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<jsp:include page="/jsp/top.jsp"/>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">

  	<tr>
    		<td align="center">
    			<html:form action="/portal/postadv.do?action=PostAd" enctype="multipart/form-data">
      				<table width="1000" border="0" cellpadding="9" cellspacing="0">
					<tr>
<td colspan="1"><img height="39" width="245" alt="** PLEASE DESCRIBE THIS IMAGE **" src="../images/st_01.jpg"/></td>
<td colspan="1"><img height="39" width="157" alt="** PLEASE DESCRIBE THIS IMAGE **" src="../images/st_02a.gif"/></td>
<td colspan="1"><img height="39" width="179" alt="** PLEASE DESCRIBE THIS IMAGE **" src="../images/st_03.jpg"/></td>          
						<td>   		
						</td>        
					</tr>
        
					<tr class="text" bgcolor="">						
						<td colspan="7"> 						     
							<div align="left" style="margin-left:40px">
							<span class="label"><strong> Category:</strong></span> <bean:write name="NewAdRecord" property="catName"/>&nbsp;&nbsp;&nbsp;
							<span class="label"><strong>SubCategory:</strong></span> <bean:write name="NewAdRecord" property="subCatName"/>&nbsp;&nbsp;&nbsp;
							<span class="label"><strong>City:</strong></span><bean:write name="NewAdRecord" property="city"/>
							<br>
							<% 
							String fromConfirm = request.getParameter("fromConfirm");
							if(fromConfirm==null) {
							%>
							<span class="error"><html:errors/> </span></div>
						</td>
						<%
						}
						%>
					</tr>	
        
        				<tr class="text">
							<td colspan="4"> <!--to fit the above tds-->
								<table border="0" cellpadding="5" cellspacing="0" width="100%">
									<tr>
         					<td colspan="" align="right" class="boldtext">Title</td>	
          					<td valign="top" colspan="">
          						<html:text size="57" styleClass="field" style="display:inline" property="title"/>
          						<html:errors property="title"/>
          						<logic:equal name="NewAdRecord" property="catName" value="Housing">
           						<logic:equal name="NewAdRecord" property="subCatName" value="Real Estate For Sale">&nbsp;
           						<span class="boldtext text">Sale</span>
           						<span class="boldtext text">Price Rs.</span>
           						<span class="label text"><html:text styleClass="field" value="" property="price"/><html:errors property="price"/></span>
								</logic:equal>
								<logic:notEqual name="NewAdRecord" property="subCatName" value="Real Estate For Sale">&nbsp;
           						<span class="boldtext text"> Rent Rs.</span><span class="label"> <html:text value="" styleClass="field" property="price"/><html:errors property="price"/></span>
							</logic:notEqual></logic:equal>
								<logic:equal name="NewAdRecord" property="catName" value="Buy & Sell">&nbsp;
           						<span class="boldtext text"> Price Rs.</span><span class="label"> <html:text value="" styleClass="field" property="price"/><html:errors property="price"/></span>
							</logic:equal>
							<logic:equal name="NewAdRecord" property="catName" value="Autos">&nbsp;
           						<span class="boldtext text"> Price Rs.</span><span class="label"> <html:text value="" styleClass="field" property="price"/><html:errors property="price"/></span>
							</logic:equal>	            
           					</td>	        
           				</tr>	        	        	
           				
           				<tr class="text">	  
           					<td colspan="" align="right" valign="top" class="boldtext text">Post Desc</td>	  
           					<td valign="top" colspan="" rowspan="2">           						
           						<html:textarea styleId="postDesc" style="height:100%;" styleClass="field" rows="12" cols="85" property="postDesc"/><html:errors property="postDesc"/>
           						<!--script language="javascript1.2">loadDefaultFontForEditor('postDesc');generate_wysiwyg('postDesc');
           						</script-->          						
           					</td>	
           				</tr><%
           				
           				/*
           				Modified by arun on Aug 1
           				User user= (User) session.getAttribute("USER");
           				*/
           				User_23Feb09 user= (User_23Feb09) session.getAttribute("USER");
           				       String email = user.getEmail();
           				       %>	   
           				       <tr>     
           				          <td>
           				             &nbsp;
           				          </td>
           				       </tr>
           				<tr class="text">	          
           					<td colspan="" align="right" class="boldtext">Email</td>	          
           					<td colspan="2"  valign="top"><html:text property="contactEmail" styleClass="field"  value="<%=email%>"/><html:errors property="contactEmail"/> 
           					<span class="boldtext">Mask my email</span>&nbsp;<html:checkbox property="isAnonymize"/></td>	        
           				</tr>	        
           				<tr class="text">
           					<td colspan="" align="right" class="boldtext">Phone</td>	          
           					<td colspan="4"><html:text styleClass="field" property="contactNumber"/><html:errors property="contactNumber"/>&nbsp;</td>	        
           				</tr>        
           					<logic:equal name="NewAdRecord" property="catName" value="Housing">	        
           				<tr class="text">
           					<td colspan="" align="right" class="boldtext">SqFt</td>	          
           					<td colspan="7"><html:text styleClass="field" property="squareFeet"/><html:errors property="sqft"/>&nbsp;</td>	        
           				</tr>	        
           				<tr class="text">	          
           					<td colspan="" align="right" class="boldtext">No of Bedrooms</td>	          
           					<td colspan=""><html:select styleClass="field" property="houseType"> <html:option value="Studio">Studio</html:option><html:option value="One BedRoom">1BR</html:option> <html:option value="Two BedRoom">2BR</html:option>	            
           					<html:option value="Three BedRoom">3BR</html:option> <html:option value="4">4BR</html:option>	            <html:option value="More than 4 BedRoom">&gt;4BR</html:option></html:select>&nbsp;</td>	        
           				</tr>        
           					</logic:equal>        
           				<tr class="text">		
           					<td colspan="" align="right" class="boldtext">ActiveUntil</td>		
           					<td colspan="">	<% String action = request.getParameter("action");%>		 	
           						<%if (action==null){ action="";}%>			
           						<% if (action.equals("EditAd") || "true".equals(request.getParameter("isedit"))  ) {%>				
           						<input type="hidden" name="isedit" value="true"><bean:write name="NewAdRecord" property="activeUntil"/>			
           						<%}else{%>				<input type="hidden" name="isedit" value="false">			
	<html:text styleClass="field" property="activeUntil"/><html:errors property="activeUntil"/>			<%}%></td>  
      </tr>               
 <!-- Not working in lower version of IE -->        <!--        <tr>     
   <td colspan="2">        <DIV id="picturelist">	
	<input type="button" class="text" value="Add/Edit Images" onclick="updatePictureList()">
	</DIV>	</td>	</tr>	-->	
<logic:notEqual name="NewAdRecord" property="catName" value="Resumes">
<logic:notEqual name="NewAdRecord" property="catName" value="Education">       
<logic:notEqual name="NewAdRecord" property="catName" value="Job Openings">
<tr>	    <td colspan="2"><div align="center">	    
<img src="../images/submit.jpg" value="Submit" onClick="javascript:doSubmit()" /></div>		</td>    </tr>   

	<tr>	<td colspan="2" align="center">	<p id="picturegallery"> 
<!-- style="display:none" -->
<table class="text">	
	<tr>		
		<td>	
		<table>	
		<tr>				
			<td align="center" width=330px height=250px  background="../images/picbg.jpg">
				<IMG alt=Help src="<%=initPict1%>" align=absBottom border=0 id="pict1" name="pict1">
			</td>
		</tr>		
		<% if(initPict1.lastIndexOf("images/no.gif") > 0) { %>			
			<tr>			
				<td align="center"><div id=info1>No Image</div></td>
			</tr>
			<tr>				
				<td align="center" class="boldtext">					
					<div class="fileinputs">
						<input type="file" class="file" name="theFile1" size="20" value="" LANGUAGE=javascript onchange="imgAdd(this, 1)">
					</div>				
				</td>				
			</tr>				
		<% } else { %>			
			<tr>	
				<td align="center"><div id=info1>Existing Image</div></td>		
			</tr>		
			<tr>	
				<td align="center">			
					<label><input type="radio" name="image1" id="imgdel1" value="" onclick="imgdelete(1);">Delete</label>
					<label><input type="radio" name="image1" id="imgchg1" value="" onclick="imgchange(1);">Change to:</label>
					<br>
					<div class="fileinputs">	
					<input type="file" disabled id="imgfile1" size="25" name="theFile1" onchange="imgAdd(this, 1);">
					</div>
				</td>	
			</tr>	
		<% } %>
		<tr>	
			<td align="center" class="boldtext">Title
				<input type="text" class="field" name="comment1" id="comment1" size="30" maxlength="255" value="<%=comment1%>"> 
			</td>	
		</tr>
	</table>	
</td>	
<td>
	<table>			
		<tr>
			<td align="center" width=330px height=250px background="../images/picbg.jpg">
				<IMG alt=Help src="<%=initPict2%>" align=absBottom border=0 id="pict2" name="pict2">
			</td>
		</tr>
		<% if(initPict2.lastIndexOf("images/no.gif") > 0) { %>
			<tr>	
				<td align="center"><div id=info2>No Image</div></td>
			</tr>		
			<tr>				
				<td align="center" class="boldtext">				
					<div class="fileinputs"><input type="file" class="file" name="theFile2" size="20" value="" LANGUAGE=javascript onchange="imgAdd(this, 2)">
					</div>
				</td>		
			</tr>	
		<% } else { %>			
			<tr>	
				<td align="center"><div id=info2>Existing Image</div></td>
			</tr>			
			<tr>
				<td align="center">		
					<label><input type="radio" name="image2" id="imgdel2" value="" onclick="imgdelete(2);">Delete</label>
					<label><input type="radio" name="image2" id="imgchg2" value="" onclick="imgchange(2);">Change to:</label><br>	
					<div class="fileinputs">	
						<input type="file" disabled id="imgfile2" size="25" name="theFile2" onchange="imgAdd(this, 2);">
					</div>
				</td>			
			</tr>
		<% } %>	
		<tr>	
			<td align="center" class="boldtext">Title
				<input type="text" class="field" name="comment2" id="comment2" size="30" maxlength="255" value="<%=comment2%>">
			 </td>
		</tr>
	</table>
</td>
</tr>
<tr>
<td>		
	<table>			
		<tr>	
			<td align="center" width=330px height=250px background="../images/picbg.jpg">
				<IMG alt=Help src="<%=initPict3%>" align=absBottom border=0 id="pict3" name="pict3">
			</td>
		</tr>	
		<% if(initPict3.lastIndexOf("images/no.gif") > 0) { %>		
			<tr>	
				<td align="center"><div id=info3>No Image</div></td>	
			</tr>
			<tr>
				<td align="center" class="boldtext">				
					<div class="fileinputs">
						<input type="file" class="file" name="theFile3" size="20" value="" LANGUAGE=javascript onchange="imgAdd(this, 3)">	
					</div>
				</td>			
			</tr>
		<% } else { %>		
			<tr>			
				<td align="center"><div id=info3>Existing Image</div></td>				
			</tr>
			<tr>					
				<td align="center">		
					<label><input type="radio" name="image3" id="imgdel3" value="" onclick="imgdelete(3);">Delete</label>
					<label><input type="radio" name="image3" id="imgchg3" value="" onclick="imgchange(3);">Change to:</label><br>	
					<div class="fileinputs"><input type="file" disabled id="imgfile3" size="25" name="theFile3" onchange="imgAdd(this, 3);">
					</div>
				</td>
			</tr>
		<% } %>	
		<tr>					
			<td align="center" class="boldtext">Title
			<input type="text" class="field" name="comment3" id="comment3" size="30" maxlength="255" value="<%=comment3%>"> </td>
		</tr>
	</table>
</td>		
<td>
	<table>
		<tr>					
			<td align="center" width=330px height=250px  background="../images/picbg.jpg">
				<IMG alt=Help src="<%=initPict4%>" align=absBottom border=0 id="pict4" name="pict4">
			</td>	
		</tr>
		<% if(initPict4.lastIndexOf("images/no.gif") > 0) { %>			
			<tr>
				<td align="center"><div id=info4>No Image</div></td>	
			</tr>	
			<tr>	
				<td align="center" class="boldtext">				
					<div class="fileinputs">
						<input type="file" class="file" name="theFile4" size="20" value="" LANGUAGE=javascript onchange="imgAdd(this, 4)">		
					</div>
				</td>	
			</tr>		
		<% } else { %>			
			<tr>	
				<td align="center"><div id=info4>Existing Image</div></td>
			</tr>	
			<tr>		
				<td align="center">					
					<label><input type="radio" name="image4" id="imgdel4" value="" onclick="imgdelete(4);">Delete</label>	
					<label><input type="radio" name="image4" id="imgchg4" value="" onclick="imgchange(4);">Change to:</label><br>
					<div class="fileinputs">	
						<input type="file" disabled id="imgfile4" size="25" name="theFile4" onchange="imgAdd(this, 4);">
					</div>
				</td>		
			</tr>		
		<% } %>			
		<tr>			
			<td align="center" class="boldtext">Title
				<input type="text" class="field" name="comment4" id="comment4" size="30" maxlength="255" value="<%=comment4%>">
			</td>	
		</tr>		
	</table>
</td>	
</tr>
<tr>
	<td>
		<table>	
			<tr>	
				<td align="center" width=330px height=250px background="../images/picbg.jpg">
					<IMG alt=Help src="<%=initPict5%>" align=absBottom border=0 id="pict5" name="pict5">
				</td>				
			</tr>
			<% if(initPict5.lastIndexOf("images/no.gif") > 0) { %>			
				<tr>	
					<td align="center"><div id=info5>No Image</div></td>
				</tr>		
				<tr>		
					<td align="center" class="boldtext">				
						<div class="fileinputs">
							<input type="file" class="file" name="theFile5" size="20" value="" LANGUAGE=javascript onchange="imgAdd(this, 5)">
						</div>
					</td>	
				</tr>		
			<% } else { %>		
				<tr>		
					<td align="center"><div id=info5>Existing Image</div></td>	
				</tr>	
				<tr>			
					<td align="center">		
						<label><input type="radio" name="image5" id="imgdel5" value="" onclick="imgdelete(5);">Delete</label>	
						<label><input type="radio" name="image5" id="imgchg5" value="" onclick="imgchange(5);">Change to:</label><br>
						<div class="fileinputs">	
							<input type="file" disabled id="imgfile5" size="25" name="theFile5" onchange="imgAdd(this, 5);">
						</div>
					</td>	
				</tr>		
			<% } %>			
			<tr>		
				<td align="center" class="boldtext">Title
					<input type="text" class="field" name="comment5" id="comment5" size="30" maxlength="255" value="<%=comment5%>">
				</td>
			</tr>
		</table>	
	</td>
	<td>	
		<table>			
			<tr>		
				<td align="center" width=330px height=250px background="../images/picbg.jpg">
					<IMG alt=Help src="<%=initPict6%>" align=absBottom border=0 id="pict6" name="pict6">
				</td>
			</tr>
			<% if(initPict6.lastIndexOf("images/no.gif") > 0) { %>			
				<tr>					
					<td align="center"><div id=info6>No Image</div></td>		
				</tr>	
				<tr>			
					<td align="center" class="boldtext">				
						<div class="fileinputs">	
							<input type="file" class="file" name="theFile6" size="20" value="" LANGUAGE=javascript onchange="imgAdd(this, 6)">
						</div>
					</td>				
				</tr>			
			<% } else { %>			
				<tr>	
					<td align="center"><div id=info6>Existing Image</div></td>		
				</tr>
				<tr>			
					<td align="center">	
					<label><input type="radio" name="image6" id="imgdel6" value="" onclick="imgdelete(6);">Delete</label>
					<label><input type="radio" name="image6" id="imgchg6" value="" onclick="imgchange(6);">Change to:</label>
					<br>
					<div class="fileinputs">				
						<input type="file" disabled id="imgfile6" size="25" name="theFile6" onchange="imgAdd(this, 6);">
					</div>
					</td>			
				</tr>		
			<% } %>				
			<tr>		
				<td align="center" class="boldtext">Title
					<input type="text" class="field" name="comment6" id="comment6" size="30" maxlength="255" value="<%=comment6%>">
				</td>	
			</tr>
		</table>			
	</td>		
</tr>	
</table>	
</p> 
</td>	
</tr>	
</logic:notEqual>
</logic:notEqual>	
</logic:notEqual>  	
<tr>	   
<td colspan="2"><div align="center">	    
<img src="../images/submit.jpg" value="Submit" onClick="javascript:doSubmit()" /></div>		</td>    </tr>   
<tr>		
<td colspan="2" width=100% align="center" class="boldtext">	
<%
	String subm = request.getParameter("PostingType");
  	if("4".equals(subm) || "5".equals(subm) || "54".equals(subm))
  	{
%>	
<%
	}
	else
    	{	
%>
	<span class="text">Submit may take a little longer in case you are uploading pictures.</span>
<%
	}
%>
</td>
</tr>
</table> <!--fitting purposes-->
</td>	
</tr>
</table>
</html:form>
</td>
</tr>
<script>initFileUploads();</script>
<style>
input.file.hidden {
	position: relative;
	text-align: right;
	-moz-opacity:0 ;
	filter:alpha(opacity: 0);
	opacity: 0;
	z-index: 2;
}

div.fileinputs {
position:relative;
}
div.fakefile {
left:0;
line-height:90%;
margin:0;
padding:0;
position:absolute;
top:0;
width:350px;
z-index:1;
}
</style>
</table>
 <br>
 <br>
<jsp:include page="footer.html"/>
<jsp:include page="map.html"/>
</body>
</html>
